<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %> 
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="page" uri="/WEB-INF/page"%>
<%@page isELIgnored="false"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
    <link href="${pageContext.request.contextPath}/static/assets/css/bootstrap.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/static/assets/css/font-awesome.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/static/assets/css/custom-styles.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/static/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body>
    <div id="wrapper">
        <div id="page-wrapper" >
          	<div id="page-inner">
			 	<div class="row">
                    <div class="col-md-12">
                        <h1 class="page-header">
                           Withdraw <small>management</small>
                        </h1>
                    </div>
              	</div> 
            	<div class="row">
                	<div class="col-md-12">
                    	<div class="panel panel-default">
                        	<div class="panel-heading">
                             		提现
                        	</div>
                        	<form action="withdraw" method="get" id="queryForm">
                        	<div>
                       			<p>
                       			 	<span>用户编号：<input type="text" name="userCode" value="${dto.userCode }" /></span>
                       				<span>真实姓名：<input type="text" name="realname" value="${dto.realname }" /></span>
                       				<span>取现到账账号：<input type="text"  name="account" value="${dto.account }" /></span>
                       				<input type="button" value="查询" onclick="setPageNo(1)">
                       				<input type="reset" value="重置">
                       			</p>
                        	</div>
                      		<div class="panel-body">
                            	<div class="table-responsive">
                                	<table class="table table-striped table-bordered table-hover" id="dataTables-example">
	                                    <thead>
	                                        <tr>
	                                            <th>用户编号</th>
	                                            <th>真实姓名</th>
	                                            <th>取现金额</th>
	                                            <th>取现类型</th>
	                                            <th>取现时间</th>
	                                            <th>用户取现账号</th>
	                                            <th>是否完成操作</th>
<!-- 	                                            <th>是否免单</th> -->
	                                            <th>详情</th>
	                                        </tr>
	                                    </thead>
                                    	<tbody>
		                                    <c:forEach items="${page.results}" var="withdraw">
		                                        <tr class="odd gradeX">
		                                            <td class="center"><a href="${pageContext.request.contextPath}/appuser/${withdraw.userCode }">${withdraw.userCode}</a></td>
		                                            <td>${withdraw.realname}</td>
		                                            <td>${withdraw.withdrawals}</td>		                                            
		                                            <td><c:choose>
		                                            		<c:when test="${withdraw.accountType == '0' }">
		                                            			支付宝
		                                            		</c:when>
		                                            		<c:when test="${withdraw.accountType == '1' }">
		                                            			微信
		                                            		</c:when>
		                                            		<c:otherwise>
		                                
		                                            		</c:otherwise>
		                                            	</c:choose></td>
		                                          <%--   <td>${auth.carOwner }</td> --%>
		                                            <td><fmt:formatDate value="${withdraw.recordTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		                                            <td>${withdraw.account }</td>
		                                            <td>
		                                            	<c:choose>
		                                            		<c:when test="${withdraw.state == '0' }">
		                                            			否
		                                            		</c:when>
		                                            		<c:when test="${withdraw.state == '1' }">
		                                            			是
		                                            		</c:when>
		                                            		<c:otherwise>
		                                
		                                            		</c:otherwise>
		                                            	</c:choose>
		                                            </td>
		                                            <td ><a href="${pageContext.request.contextPath}/withdraw/${withdraw.id}/update">详请</a></td>
		                                        </tr>
		                                     </c:forEach>
                                    	</tbody>
                                	</table>
                            	</div>
                        	</div>
                        	<p align="right"><page:page page="${page }"/></p>
				            </form>
                    	</div>
                	</div>
				</div>
        	</div>
	    </div>
	</div>
    <script src="${pageContext.request.contextPath}/static/assets/js/jquery-1.10.2.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/jquery.metisMenu.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/dataTables/dataTables.bootstrap.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/custom-scripts.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/page.js"></script>
    <script>
          $(document).ready(function () {
          });
  	</script>
</body>
</html>
